﻿using DAL.Entities;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL.Configurations
{
    public class InOutConfiguration : EntityTypeConfiguration<InOut>
    {
        public InOutConfiguration()
        {
            ToTable("inout").HasKey(x => x.InOutId);
            Property(x => x.InOutType).HasMaxLength(10);

            HasOptional(x => x.Yqzs).WithRequired(x => x.InOut).WillCascadeOnDelete();
        }
    }
}
